package controllers

import (
	beego "github.com/beego/beego/v2/server/web"
)

type MainController struct {
	beego.Controller
}

func (c *MainController) Get() {
	//c.Data["Website"] = "beego.me"
	//c.Data["Email"] = "astaxie@gmail.com"
	c.SetSession("username", "xiaoming")
	c.SetSession("authority", 1)
	c.SetSession("user_Id", 123)
	c.TplName = "home.tpl"
}
